/* Main.java
 * Author: liuex
 * 2007-12-18 ����05:07:28
 *
 * Note: 
 */
package org.lex.tf.core;

import java.util.Arrays;
import java.util.Random;

public class Main24 {
	private static int count = 10;
	private static Random rand = new Random();
	private static int[] tmp = new int[4];

	static int[] generate() {
		for (int i = 0; i < tmp.length; i++)
			tmp[i] = rand.nextInt(9) + 1;
		return tmp;
	}

	public static void main(String[] args) {
		TwentyFour2 tf = new TwentyFour2();
		for (int i = 0; i < count; i++) {
			int[] a = generate();
			System.out.println(Arrays.toString(a) + ": " + tf.find(a[0], a[1], a[2], a[3]));
		}
		// System.out.println( tf.find( 1, 1, 2, 9 ) );
		// System.out.println( tf.find( 5, 5, 3, 3 ) );
	}
}
